Learn R Programming

reutils (version 0.2.1)

[,einfo,ANY,missing-method: EInfo accessors

Description

Extract parts of a parsed einfo object.

Usage

## S3 method for class 'einfo,ANY,missing':
[(x, i, j)

## S3 method for class 'einfo,ANY': [[(x, i)

Arguments

x
An einfo object.
i
Numeric or character indices specifying the elements to extract.
j
Ignored.

Value

  • A list.

See Also

Extract

Examples

Run this code
e <- einfo("pubmed")
e[1:5]
e["Description"]
e[["Links"]]

e2 <- einfo("pubmed", retmode = 'json')
e2[["header"]]
e2[["einforesult"]][["dbinfo"]][["description"]]

Run the code above in your browser using DataLab